package org.fedex.rg.servises.impl;

import java.util.ArrayList;
import java.util.List;

import org.fedex.rg.model.Song;
import org.fedex.rg.servises.PlaylistUpdateService;
import org.fedex.rg.utils.Log;

public class MockPlaylistUpdateServise implements PlaylistUpdateService {

	@Override
	public List<Song> updatePlaylist() {
		return getOrders();
	}

	private List<Song> getOrders() {
		List<Song> songs = new ArrayList<Song>();
		try {
			Song o1 = new Song("SF services", "Pending");
			Song o2 = new Song("SF Advertisement", "Completed");
			songs.add(o1);
			songs.add(o2);
			Thread.sleep(2000);
		} catch (Exception e) {
			Log.e(e.getMessage());
		}
		return songs;

	}

}
